﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NoMvvm;

namespace Wizard.ViewModels
{
    public class FourthViewModel : ViewModel
    {
        private readonly PopupViewModel _popup;

        public FourthViewModel(PopupViewModel popup)
        {
            _popup = popup;

            This.Text = "several children.";
        }

        public void Popup()
        {
            var view = _popup.View;
            view.Owner = Runtime.MainView;
            view.ShowDialog();
        }
    }
}
